<h1>Listing regles</h1>

<table>
  <tr>
    <th>Descregle</th>
    <th>Valeurlimite</th>
    <th>Operationarithme</th>
  </tr>

<% @regles.each do |regle| %>
  <tr>
    <td><%=h regle.descregle %></td>
    <td><%=h regle.valeurlimite %></td>
    <td><%=h regle.operationarithme %></td>
    <td><%= link_to image_tag("voir.png", :alt => "Voir"), regle %></td>
    <td><%= link_to image_tag("edit.png", :alt => "edit"), edit_regle_path(regle) %></td>
    <td><%= link_to image_tag("supp.png", :alt => "supp"), regle, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New regle', new_regle_path %>